package com.example.unifiedinterface.client;

import com.example.unifiedinterface.pojo.OrderParam;
import com.example.unifiedinterface.sender.BaseUnifiledSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * @Author: 19239
 * @Description:
 * @Date: 2024/5/21
 * @Version: 1.0
 */
@Component
public class OrderClient extends BaseUnifiledSender<OrderParam> {

    @Autowired
    private RestTemplate restTemplate;

    @Override
    protected String getUrl() {
        return "https://www.baidu.com";
    }

    @Override
    protected String getRequestName() {
        return "测试订单接口";
    }

    @Override
    protected RestTemplate getRestTemplate() {
        return restTemplate ;
    }

    @Override
    protected String getUsername() {
        return "123";
    }

    @Override
    protected String getPassword() {
        return "12345";
    }
}
